<?php
/**
 * Created by PhpStorm.
 * User: Yd-Cjh
 * Date: 2018/12/15
 * Time: 16:56
 */

namespace App\Content\Controllers\Home;

use App\Base\Controllers\Controller;
use App\Content\Repositories\DbFookmarkRepository;
use Illuminate\Http\Request;

class FookmarkController extends Controller
{

    /**
     * data
     * @return DbFookmarkRepository
     */
    public function getDbFookmarkRepository(){
        return app()->make(DbFookmarkRepository::class);
    }

    public function setFoookmark(Request $request){

        return $this->getDbFookmarkRepository()->insertData($request->except("data","token"));
    }

}